package com.yunxi.service.localService.impl;

import com.yunxi.bizToHub.pojo.OtdModelVO;
import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.vehicle.VehicleProductViewMapper;
import com.yunxi.model.vehicle.VehicleProductView;
import com.yunxi.service.localService.VehicleProductViewService;
import com.yunxi.vehicle.pojo.VehicleProductViewVO;
import java.util.List;
import org.springframework.stereotype.Service;


/**
 * <p>
 * 产品信息视图
 * </p>
 *
 * @author XUQI
 * @since 2019-05-28
 */
@Service
public class VehicleProductViewServiceImpl extends ServiceImplPlus<VehicleProductViewMapper, VehicleProductView>
    implements VehicleProductViewService {


    @Override
    public String findProductCodeBySub(String catalogCode, String colorInCode, String colorOutCode) {
        return baseMapper
            .selectProductCodeBySub(catalogCode, colorInCode, colorOutCode);
    }

    @Override
    public VehicleProductViewVO selectProductByCode(String productCode) {
        return baseMapper.selectProductByCode(productCode);
    }

    @Override
    public VehicleProductViewVO findProductBySub(String catalogCode, String colorInCode, String colorOutCode) {
        return baseMapper.selectProductBySub(catalogCode, colorInCode, colorOutCode);
    }


    @Override
    public String findDormerNameByCatalog(String catalogCode) {
        return baseMapper.selectDormerNameByCatalog(catalogCode);
    }

    @Override
    public List<OtdModelVO> findConfigByCustomPackCode(String carModel, String customPackCodes,String packageNo) {
        return baseMapper.selectConfigByCustomPackCode(carModel, customPackCodes,packageNo);
    }
}
